package com.shopping_back.mapper;

import com.shopping_back.pojo.entity.MerchantInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.repository.query.Param;

/**
 * <p>
 * 商家信息表 Mapper 接口
 * </p>
 *
 * @author Jack
 * @since 2025-07-12
 */
@Mapper
public interface MerchantInfoMapper extends BaseMapper<MerchantInfo> {
    @Select("SELECT COUNT(*) FROM merchant_info WHERE shop_name = #{shopName}")
    boolean existsByShopName(@Param("shopName") String shopName);
}
